package com.dyg.service;

import java.util.List;

import com.dyg.model.UserRole;

public interface UserroleService {

	public void insertUserrole(UserRole UserRole);

	public void deleteUserroleById(String userroleId);

	public void updateUserrole(UserRole UserRole);

	public UserRole findUserroleById(String userroleId);

	public List<UserRole> findUserroleList();

	/**
     * 为单个用户设置多个角色
	 * @param userId
	 * @param rids
	 */
	public Integer addUserRoles(Integer userId, List<Integer> rids);

}
